
package com.tenentia.pcmps.swm.web.jsf.beans;

import org.apache.log4j.Logger;

import com.tenentia.pcmps.swm.Constants;
import com.tenentia.pcmps.swm.web.jsf.tables.JSFTableDataModel;
import com.tenentia.pcmps.swm.web.jsf.tables.JSFTableDataProvider;
import com.tenentia.pcmps.swm.web.jsf.tables.implementation.MarketingPromotionsTableDataProvider;

/**
 * 
 * @author tEnEntia, S.L.N.E.
 * 
 */
public class MarketingPromotionsManagement {

	private static final Logger LOGGER = Logger.getLogger(MarketingPromotionsManagement.class.getPackage().getName());

	private JSFTableDataModel tableDataModel;

	public MarketingPromotionsManagement() {

		super();
	}

	public String prepareView() {

		LOGGER.debug(Constants.STRING_L4J_METHOD_BEGIN);

		JSFTableDataProvider tableDataProvider = new MarketingPromotionsTableDataProvider();
		tableDataModel = new JSFTableDataModel(tableDataProvider);

		return Constants.STRING_JSF_ACTION_SUCCESS;

	}

	/**
	 * @return the tableDataModel
	 */
	public JSFTableDataModel getTableDataModel() {

		return tableDataModel;
	}

	/**
	 * @param tableDataModel
	 *            the tableDataModel to set
	 */
	public void setTableDataModel(JSFTableDataModel tableDataModel) {

		this.tableDataModel = tableDataModel;
	}

}
